
#include <iostream>
using namespace std;

#include <GfsFileSystem.h>

int main(int argc, char **argv)
{
#ifdef LOGGER
	log4cplus::PropertyConfigurator::doConfigure("../../conf/log4cplus.tablet_server.conf");
#endif
	FileSystem::get("../../conf/gfsclient.conf");

	std::string _name = "/xbase/tabletserver_192.168.9.69,20083,1206328432696939";
	CDirectory _dir(_name.c_str());

	cout << _dir.DirName() << endl;
	for(unsigned int i=0; i<_dir.FileCount(); ++i) {
		cout << _dir[i].FileName() << "\t"
		     << _dir[i].FileType() << endl;
	}
	
	return 0;
	
}
